import  unittest
import  parameterized
import json
import common.tools

with open("D:/test/dubbo/data/data1.json", encoding="utf-8") as k :
    s = json.load(k)

class test_add(unittest.TestCase):
    print(s["add"])
    @parameterized.parameterized.expand(s["add"])
    def test_01(self,x,y,z,expect):
        self.assertEqual(expect,common.tools.add(x,y,z))

class test_check(unittest.TestCase):
    @parameterized.parameterized.expand(s["check"])
    def test_02(self,z,expect):
        self.assertEqual(expect,common.tools.check(z))

class test_moths(unittest.TestCase):
    @parameterized.parameterized.expand(s["moths"])
    def test_03(self,m,expect):
        self.assertEqual(expect,common.tools.months(m))
